package com.zhuang.designpattern.template;

import com.zhuang.designpattern.template.impl.JDNetMall;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * description: Test
 * date: 2022/9/22 16:58
 * author: Zhuang
 * version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        Logger logger = LoggerFactory.getLogger(Test.class);
        /**
         * 测试链接
         * 京东；https://item.jd.com/100008348542.html
         * 淘宝；https://detail.tmall.com/item.htm
         * 当当；http://product.dangdang.com/1509704171.html
         */

        NetMall netMall = new JDNetMall("1000001", "*******");
        String base64 = netMall.generateGoodsPoster("https://item.jd.com/100008348542.html");
        logger.info("测试结果：{}", base64);
    }
}
